package zero.tech.games.gate.process;

import com.alibaba.fastjson.JSONObject;

import zero.tech.core.ZeroContext;
import zero.tech.core.data.Resp;
import zero.tech.games.gate.data.GATECMD;
import zero.tech.games.gate.service.api.IGateService;
import zero.tech.wsnet.common.ReqProcess;
import zero.tech.wsnet.data.IREQ;
import zero.tech.wsnet.net.WebClient;

@IREQ(code = GATECMD.GATE_REQ_LOGIN)
public class GateReqLogin extends ReqProcess {

	@Override
	public void process(WebClient webClient, Resp param) {
		JSONObject obj = (JSONObject) param.getParam();
		String token = obj.getString("token");
		IGateService gateService=ZeroContext.getInstance(IGateService.class);
		gateService.gateReqLogin(webClient, token);
	}

}
